<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Verification</title>
</head>
<body>

		<%
			Vector list_degree = (Vector)session.getAttribute("degreeVector");
			Applicant applicant = (Applicant) session.getAttribute("applicant");
			Degree degree = (Degree)session.getAttribute("degree");
			Vector degreesVector = (Vector)session.getAttribute("degreeVector");
			String degreesString = Database.printDegrees(degreesVector);
			
			//String specialization = request.getParameter("specialization");
			//applicant.setSpecialization(specialization);
			session.setAttribute("applicant", applicant);
		%>
		
		<%="Name: " + applicant.getName() %><br />
		<%="Country of Citizenship: " + applicant.getCitizenship() %> <br />
		<%="Country of Residence: " + applicant.getCountry_of_residence() %><br/>
		<%if(applicant.isDomestic()){ %>
			<%="Address: " + applicant.getAddressDomestic() %><br/>
		<%}else{%>
			<%="Address: " + applicant.getAddressForeign() %><br/>
			<%} %>
			<%= applicant.getDomestic() %><br/>
		<%="Specialization: " + applicant.getSpecialization() %>
		
		<!-- Print Degrees -->
		<br /><%=	degreesString %><br />
		
		<hr /><br /> Verify your information above and press submit to submit your Appication ! <br /><br />

			<!-- Submit Application and then go back to the Welcome Page -->
			
			<html:button property="sumit" onclick="window.location='/StrutsCSE135/pages/students/submit.jsp'" value="Submit"/>
			<html:button property="cancel" onclick="window.location='/StrutsCSE135/pages/students/index.jsp'" value="Cancel"/>


</body>
</html>